package com.cn.task.beans;

import java.util.ArrayList;
import java.util.List;

import com.cn.xc.utils.CollectionUtil;
import com.cn.xc.utils.StringUtil;
/**
 * FUN: 加载数据库的配置 
 *
 * @author sushy
 * @time 2016-3-23
 */
public class TaskConfigBean {

	private String taskName;
	private String iteratorParam;
	private String iteratorClass;
	private String poolName;
	private String provId;
	private String qrySql;
	private String charsetName = "UTF-8";
	private String colSeparator;
	private String rowSeparator;
	private String columnNames;
	private String headLine;
	private String secondLine;
	private String fileNameCons;
	private String fileNamePrefix;
	private String fileNameSuffix;
	private String fileNamebody;
	private String fileSplit;
	private long lineLimit;
	private String subPath;
	private String subCityPath;
	private String filePath;
	private String doAfter;
	private String afterSql;
	private String seqType;
	private String fileCheckCons;
	private String qryAddSysParam;
	private String qryLineLimit;

	private String ftpConfig;
	private String ftpIp;
	private String ftpUser;
	private String ftpPassword;
	private String ftpPort;
	private String ftpPostfix;
	private String ftpWorkBasePath;

	private List<String> cityIds;
	private List<String> qrySqls;
	private List<String> fileNames;
	private List<String> afterSqls;

	public String getQryAddSysParam() {
		return qryAddSysParam;
	}

	public void setQryAddSysParam(String qryAddSysParam) {
		this.qryAddSysParam = qryAddSysParam;
	}

	public String getQryLineLimit() {
		return qryLineLimit;
	}

	public void setQryLineLimit(String qryLineLimit) {
		this.qryLineLimit = qryLineLimit;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getIteratorParam() {
		return iteratorParam;
	}

	public void setIteratorParam(String iteratorParam) {
		this.iteratorParam = iteratorParam;
	}

	public String getIteratorClass() {
		return iteratorClass;
	}

	public void setIteratorClass(String iteratorClass) {
		this.iteratorClass = iteratorClass;
	}

	public String getPoolName() {
		return poolName;
	}

	public void setPoolName(String poolName) {
		this.poolName = poolName;
	}

	public String getProvId() {
		return provId;
	}

	public void setProvId(String provId) {
		this.provId = provId;
	}

	public String getQrySql() {
		return qrySql;
	}

	public void setQrySql(String qrySql) {
		this.qrySql = qrySql;
	}

	public String getCharsetName() {
		return charsetName;
	}

	public void setCharsetName(String charsetName) {
		this.charsetName = charsetName;
	}

	public String getColSeparator() {
		return colSeparator;
	}

	public void setColSeparator(String colSeparator) {
		this.colSeparator = colSeparator;
	}

	public String getRowSeparator() {
		return rowSeparator;
	}

	public void setRowSeparator(String rowSeparator) {
		this.rowSeparator = rowSeparator;
	}

	public String getColumnNames() {
		return columnNames;
	}

	public void setColumnNames(String columnNames) {
		this.columnNames = columnNames;
	}

	public String getHeadLine() {
		return headLine;
	}

	public void setHeadLine(String headLine) {
		this.headLine = headLine;
	}

	public String getSecondLine() {
		return secondLine;
	}

	public void setSecondLine(String secondLine) {
		this.secondLine = secondLine;
	}

	public String getFileNameCons() {
		return fileNameCons;
	}

	public void setFileNameCons(String fileNameCons) {
		this.fileNameCons = fileNameCons;
	}

	public String getFileNamePrefix() {
		return fileNamePrefix;
	}

	public void setFileNamePrefix(String fileNamePrefix) {
		this.fileNamePrefix = fileNamePrefix;
	}

	public String getFileNameSuffix() {
		return fileNameSuffix;
	}

	public void setFileNameSuffix(String fileNameSuffix) {
		this.fileNameSuffix = fileNameSuffix;
	}

	public String getFileNamebody() {
		return fileNamebody;
	}

	public void setFileNamebody(String fileNamebody) {
		this.fileNamebody = fileNamebody;
	}

	public String getFileSplit() {
		return fileSplit;
	}

	public void setFileSplit(String fileSplit) {
		this.fileSplit = fileSplit;
	}

	public long getLineLimit() {
		return lineLimit;
	}

	public void setLineLimit(long lineLimit) {
		this.lineLimit = lineLimit;
	}

	public String getSubPath() {
		return subPath;
	}

	public void setSubPath(String subPath) {
		this.subPath = subPath;
	}

	public String getSubCityPath() {
		return subCityPath;
	}

	public void setSubCityPath(String subCityPath) {
		this.subCityPath = subCityPath;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getDoAfter() {
		return doAfter;
	}

	public void setDoAfter(String doAfter) {
		this.doAfter = doAfter;
	}

	public String getAfterSql() {
		return afterSql;
	}

	public void setAfterSql(String afterSql) {
		this.afterSql = afterSql;
	}

	public String getSeqType() {
		return seqType;
	}

	public void setSeqType(String seqType) {
		this.seqType = seqType;
	}

	public String getFileCheckCons() {
		return fileCheckCons;
	}

	public void setFileCheckCons(String fileCheckCons) {
		this.fileCheckCons = fileCheckCons;
	}

	public String getFtpConfig() {
		return ftpConfig;
	}

	public void setFtpConfig(String ftpConfig) {
		this.ftpConfig = ftpConfig;
	}

	public String getFtpIp() {
		return ftpIp;
	}

	public void setFtpIp(String ftpIp) {
		this.ftpIp = ftpIp;
	}

	public String getFtpUser() {
		return ftpUser;
	}

	public void setFtpUser(String ftpUser) {
		this.ftpUser = ftpUser;
	}

	public String getFtpPassword() {
		return ftpPassword;
	}

	public void setFtpPassword(String ftpPassword) {
		this.ftpPassword = ftpPassword;
	}

	public String getFtpPort() {
		return ftpPort;
	}

	public void setFtpPort(String ftpPort) {
		this.ftpPort = ftpPort;
	}

	public String getFtpPostfix() {
		return ftpPostfix;
	}

	public void setFtpPostfix(String ftpPostfix) {
		this.ftpPostfix = ftpPostfix;
	}

	public String getFtpWorkBasePath() {
		return ftpWorkBasePath;
	}

	public void setFtpWorkBasePath(String ftpWorkBasePath) {
		this.ftpWorkBasePath = ftpWorkBasePath;
	}

	public List<String> getCityIds() {
		return cityIds;
	}

	public void setCityIds(List<String> cityIds) {
		this.cityIds = cityIds;
	}

	public List<String> getQrySqls() {
		return qrySqls;
	}

	public void setQrySqls(List<String> qrySqls) {
		this.qrySqls = qrySqls;
	}

	public List<String> getFileNames() {
		return fileNames;
	}

	public void setFileNames(List<String> fileNames) {
		this.fileNames = fileNames;
	}

	public List<String> getAfterSqls() {
		return afterSqls;
	}

	public void setAfterSqls(List<String> afterSqls) {
		this.afterSqls = afterSqls;
	}

	public void addQrySqls(String qrySql) {
		if (StringUtil.isEmpty(qrySql)) {
			return;
		}
		if (CollectionUtil.isEmpty(this.qrySqls)) {
			this.qrySqls = new ArrayList<String>();
		}

		this.qrySqls.add(qrySql);
	}

	public void addAfterSqls(String afterSql) {
		if (StringUtil.isEmpty(afterSql)) {
			return;
		}
		if (CollectionUtil.isEmpty(this.afterSqls)) {
			this.afterSqls = new ArrayList<String>();
		}

		this.afterSqls.add(afterSql);
	}

}
